module.exports={
	prefix:"/api",
	APIError: function(code, message) {
		this.code = code || 'inernal:unknown_error';
		this.message = message || '未知错误';
	},
	Pagiation:function(current=1,size=10){
		this.current = current;
		this.size = size;
	},
	getTotalPage:(totalNum,size)=>{
		return (totalNum%size>0)?Math.ceil(totalNum/size):parseInt(totalNum/size); 
	}
}